﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="vehicle_ok.aspx.cs" Inherits="AnyOffice.general.vehicle.checkup.vehicle_ok" %>

<%@Register TagPrefix="Webdiver" Namespace="Webdiver" Assembly="AspnetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>已准申请</title>
		
		<script>
		function open_usage(usage_id)
		{
			URL="../usage_detail.aspx?usage_id=" + usage_id;
			myleft=(screen.availWidth-400)/2;
			window.open(URL,"read_usage","height=380,width=400,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
		}
		
		function open_vehicle(vehicle_id)
		{
			URL="../vehicle_detail.aspx?vehicle_id=" + vehicle_id;
			myleft=(screen.availWidth-500)/2;
			window.open(URL,"read_vehicle","height=350,width=500,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
		}
		
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="Big" width="40%"><img src="/images/menu/vehicle.gif" width="20" height="20" align="absMiddle"><span class="big3">
							已准申请</span></td>
					<td width="20%">
						<asp:Literal id="litNavCount" runat="server"></asp:Literal>
					</td>
					<td width="40%">
						<asp:Literal id="litNavPager" runat="server"></asp:Literal>
					</td>
				</tr>
			</table>			
			<asp:panel id="pnlMain" runat="server">
			<BR>
				<asp:Repeater id="rptVehicleUsage" runat="server">
				<HeaderTemplate>
					<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
						<tr class="TableHeader">
							<td noWrap align="center">车牌号</td>
							<td noWrap align="center">用车人</td>
							<td noWrap align="center">事由</td>
							<td noWrap align="center">开始时间</td>
							<td noWrap align="center">结束时间</td>
							<td noWrap align="center">备注</td>
							<td noWrap align="center">操作</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableLine1">
						<td noWrap align="center"><a href="javascript:open_vehicle('<%#Eval("VehicleId")%>');"><%#Eval("Number")%></a></td>										
						<td noWrap align="center"><%#Eval("Person")%></td>
						<td><%#Eval("Reason")%></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td><%#Eval("Remark")%></td>
						<td noWrap align="center">
							<a href="javascript:open_usage('<%#Eval("UsageId")%>');">详细信息</a>
							<a href="manage.aspx?usage_id=<%#Eval("UsageId")%>&operation=0&refer=vehicle_ok.aspx">撤消</a>
							<a href="edit.aspx?usage_id=<%#Eval("UsageId")%>&refer=vehicle_ok.aspx">修改</a>
							<a href="javascript:delete_usage('<%#Eval("UsageId")%>')">删除</a>
						</td>
					</tr>
				</ItemTemplate>
				<AlternatingItemTemplate>
					<tr class="TableLine2">
						<td noWrap align="center"><a href="javascript:open_vehicle('<%#Eval("VehicleId")%>');"><%#Eval("Number")%></a></td>										
						<td noWrap align="center"><%#Eval("Person")%></td>
						<td><%#Eval("Reason")%></td>
						<td noWrap align="center"><%#Eval("StartTime")%></td>						
						<td noWrap align="center"><%#Eval("EndTime")%></td>
						<td><%#Eval("Remark")%></td>
						<td noWrap align="center">
							<a href="javascript:open_usage('<%#Eval("UsageId")%>');">详细信息</a>
							<a href="manage.aspx?usage_id=<%#Eval("UsageId")%>&operation=0&refer=vehicle_ok.aspx">撤消</a>					
							<a href="edit.aspx?usage_id=<%#Eval("UsageId")%>&refer=vehicle_ok.aspx">修改</a>
							<a href="javascript:delete_usage('<%#Eval("UsageId")%>')">删除</a>
						</td>
					</tr>
				</AlternatingItemTemplate>
				<FooterTemplate>
					</table>					
				</FooterTemplate>
				</asp:Repeater>
				<TABLE width="100%" border="0">
					<TR>
						<TD>
							<Webdiver:AspNetPager id="AspNetPager1" runat="server" CssClass="small1" InputBoxClass="SmallInput" SubmitButtonClass="SmallButton"
								Font-Size="10pt" OnPageChanged="ChangePage" HorizontalAlign="Right" ShowCustomInfoSection="left" ShowInputBox="Always"
								SubmitButtonText="转到" NumericButtonTextFormatString="[{0}]" UrlPaging="True" CustomInfoSectionWidth="35%"
								PagingButtonSpacing="0" ImagePath="../images" ButtonImageNameExtension="n" CpiButtonImageNameExtension="r"
								DisabledButtonImageNameExtension="g" PageSize="10" AlwaysShow="True"></Webdiver:AspNetPager></TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:literal id="litMessage" runat="server"></asp:literal>
		</form>
	</body>
</HTML>
